/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package business;

/**
 *
 * @author jordan
 */
public class TxtDocument extends AbstractDocument
{
    
    private final String EXTENSION = ".txt";

    public TxtDocument(String title, String src)
    {
        super(src);
        setTitle(title);
    }
    
    @Override
    public void setTitle(String title)
    {
        if(title.contains("."))
            this.title = title.split(".")[0];
        this.title = this.title+EXTENSION;
    }
    
    
}
